<template>
    <div class="main-my-profile-setting">
        <van-form @submit="onSubmit" :show-error-message="false" >
            <van-field
                :style="{marginBottom: '30px'}"
                class="username"
                v-model="userFrom.username"
                name="username"
                placeholder="Name Surname"
                :rules="[{ required: true, message: 'Name Surname is required' }]"
            />
            <InputCountryPhone :style="{marginBottom: '10px'}" v-model:form="phoneForm" :rules="[{ required: true, message: 'Phone Number is required' }]" name="phoneNum" placeholder="Phone Number" />
        </van-form>
        <div class="btns">
            <van-button round block type="primary" class="btn"><strong>Update Profile</strong></van-button>
        </div>
    </div>
</template>

<script lang="ts" setup>
import InputCountryPhone from '../../../components/custom/input-country-phone/index.vue'
import { reactive, ref, watch  } from 'vue'

const userFrom = {
    username: ''
}

const phoneForm: {countryid: number, phoneNum: string} = reactive({phoneNum: '', countryid: 0})

const onSubmit = () => {

}



</script>

<style lang="less" scoped>
.main-my-profile-setting {
    padding: 40px 16px 0px 16px ;
    .btns {
        height: 80px;
        .btn {
            position: fixed;
            width: calc(100vw - 32px);
            margin: 0px 16px;
            bottom: 80px;
            left: 0px;
        }
    }
}
</style>
